home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / standard / getviewport.z / getviewport
Encoding:
Text File  |  2002-10-03  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttvvvviiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                                                ggggeeeettttvvvviiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggeeeettttvvvviiiieeeewwwwppppoooorrrrtttt - gets a copy of the dimensions of the current viewport
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd ggggeeeettttvvvviiiieeeewwwwppppoooorrrrtttt((((lllleeeefffftttt,,,, rrrriiiigggghhhhtttt,,,, bbbboooottttttttoooommmm,,,, ttttoooopppp))))
  13.      SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd ****lllleeeefffftttt,,,, ****rrrriiiigggghhhhtttt,,,, ****bbbboooottttttttoooommmm,,,, ****ttttoooopppp;;;;
  14.  
  15. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  16.      _l_e_f_t     expects a pointer to a location into which the system should
  17.               copy the _x coordinate (in pixels) of the left side of the
  18.               current view port.
  19.  
  20.      _r_i_g_h_t    expects a pointer to a location into which the system should
  21.               copy the _x coordinate (in pixels) of the right side of the
  22.               current view port.
  23.  
  24.      _b_o_t_t_o_m   expects a pointer to a location into which the system should
  25.               copy the _y coordinate (in pixels) of the bottom side of the
  26.               current view port.
  27.  
  28.      _t_o_p      expects a pointer to a location into which the system should
  29.               copy the _y coordinate (in pixels) of the top side of the current
  30.               view port.
  31.  
  32. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  33.      ggggeeeettttvvvviiiieeeewwwwppppoooorrrrtttt gets the dimensions of the current viewport and copies them
  34.      to the locations specified as parameters.  The current viewport is
  35.      defined as the viewport at the top of the viewport stack.
  36.  
  37. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  38.      popviewport, pushviewport, viewport
  39.  
  40. NNNNOOOOTTTTEEEE
  41.      This routine is available only in immediate mode.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.